//小敌机类
public class SmallEnemy extends FlyingObject{
    int speed;
    int score;

    SmallEnemy(){
        health=1;
        x= (int) (Math.random()*400);
        y=-imageHeight;

        image=ImageFiler.smallenemy;
        imageWidth=image.getWidth();
        imageHeight=image.getHeight();

        speed=3;
    }

    @Override
    void move() {
        y+= speed;


    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        this.speed = speed;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }
}
